/**
 * 
 */
package com.string;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author LionBule 2011-6-13 ����01:50:43.
 */
public class TestEqual {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	    //String
		String str = "test";
		String str1 = "test11111111111".substring(0, 4);
		System.out.println(str1);
		Map<String,String> map = new HashMap<String, String>();
		map.put("t1", str);
		map.put("t2", str1);
		
		System.out.println(map.get("t1").equals(map.get("t2")));
		
		Integer a = 100;
		
		//Number
		System.out.println(new Long(100).equals((long)a));
		
	}

}
